unit uFrmLogin;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, JvExStdCtrls, JvButton, JvCtrls, JvFooter, ExtCtrls,
  JvExExtCtrls, JvExtComponent, acPNG;

type
  TFrmLogin = class(TForm)
    Label1: TLabel;
    Label2: TLabel;
    Image1: TImage;
    txtLogin: TEdit;
    txtSenha: TEdit;
    JvFooter1: TJvFooter;
    btnConfirmar: TJvFooterBtn;
    btnCancelar: TJvFooterBtn;
    procedure btnConfirmarClick(Sender: TObject);
    procedure btnCancelarClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FrmLogin: TFrmLogin;

implementation

uses
  Rot_Utilidade, uDMGeral, Var_Global;

{$R *.dfm}

procedure TFrmLogin.btnConfirmarClick(Sender: TObject);
begin
  if not ValComp(txtLogin, Trim(txtLogin.Text) = '', 'Informe o login!') then Exit;
  if not ValComp(txtSenha, Trim(txtSenha.Text) = '', 'Informe a senha!') then Exit;

  ModalResult := mrOk;
end;

procedure TFrmLogin.btnCancelarClick(Sender: TObject);
begin
  ModalResult := mrCancel;
end;

end.
